import service from "../service.js";
import contentType from "@/common/config/content-type";

/** 公共前缀地址 */
const baseUrl = "/index/";

/**
 * 今日统计信息
 * @returns
 */
const todayStatistics = () => {
  const config = {
    type: contentType.Form,
    loadon: true,
  };
  return service.get(baseUrl + "todayStatistics", config);
};

/**
 * 车次提货预计完成时间提醒
 * @param {*} pagination 分页参数
 * @returns
 */
const trainPickPredictEndDateRemind = (pagination) => {
  const config = {
    type: contentType.Form,
    params: pagination
  };
  return service.get(baseUrl + "trainPickPredictEndDateRemind", config);
}


/** 首页 */
export default {
  todayStatistics,
  trainPickPredictEndDateRemind,
};
